<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./node_modules/cesium/Build/Cesium/Widgets/widgets.css">
  <style>
    html,
    body {
      height: 100%;
      margin: 0px;
      padding: 0px;
    }
  </style>
</head>

<body>
  <div id="cesiumContainer" style="width: 100%;height: 100%;"></div>
  <script src="./node_modules/cesium/Build/Cesium/Cesium.js"></script>
  <script src="./baidu.js"></script>
  <script>
    // var geeMetadata = new Cesium.GoogleEarthEnterpriseMetadata('http://www.earthenterprise.org/3d');
    // var gee = new Cesium.GoogleEarthEnterpriseImageryProvider({
    //   metadata: geeMetadata
    // });

    var googleUrl = 'http://mt1.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali';
    var google = new Cesium.UrlTemplateImageryProvider({ url: googleUrl });

    var baiduUrl = "http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1";
    var baidu = new BaiduImageryProvider({ url: baiduUrl });

    let viewer = new Cesium.Viewer('cesiumContainer', {
      selectionIndicator: false,
      animation: false,
      timeline: false,
      sceneModePicker: true,
      navigationHelpButton: false,
      useDefaultRenderLoop: true,
      showRenderLoopErrors: true,
      fullscreenButton: false,
      infoBox: false,
      baseLayerPicker: false,
      imageryProvider: baidu, // gee | google
    })
  </script>
</body>

</html>